package com.qtummatrix.service.impl;

import com.qtummatrix.dao.BlacklistDao;
import com.qtummatrix.entity.BlackList;
import com.qtummatrix.service.BlacklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * create by Gongshiyong  2019-12-07 11:31
 */
@Service
public class BlacklistServiceImpl implements BlacklistService {
	
	@Autowired
	private BlacklistDao blacklistDao;

	public List<BlackList> findBlacklist() {
		List<BlackList> list=blacklistDao.findBlacklist();
		return list;
	}

	public List<BlackList> findBlacklist(String UID, String name, String source, String state, int first, int rows) {
		List<BlackList> list=blacklistDao.findBlacklist(UID, name, source, state, first, rows);
		return list;
	}
               
	public int addBlacklist(String UID, String name, String mark, String type,String source) {
		int count =blacklistDao.addBlacklist(UID, name, mark, type, source);
		return count;
	}

	public List<BlackList> findBlacklistAudit(String UID, String name, String source, String type, int first, int rows) {
		List<BlackList> list=blacklistDao.findBlacklistAudit(UID, name, source, type,first,rows);
		return list;
	}

	public List<BlackList> findBlacklistAudit() {
		List<BlackList> list=blacklistDao.findBlacklistAudit();
		return list;
	}

	public void deleteBlacklistAudit(int id) {
		blacklistDao.deleteBlacklistAudit(id);
		
	}

	public void updateBlackAudit(int id) {
		blacklistDao.updateBlackAudit(id);
		
	}


}
